package com.qianfeng.pojo;

import com.qianfeng.status.ResultCode;
import com.qianfeng.valigroup.Delete;
import com.qianfeng.valigroup.Insert;
import com.qianfeng.valigroup.Select;
import com.qianfeng.valigroup.UpDate;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/9/8 15:12
 */
//实现序列化接口方便往缓存中存放
public class Scene implements Serializable {
    @NotEmpty(message = "{\"code\": "+ ResultCode.PARAM_CONTENT_EMPTY +",\"msg\": \"必须传递id\"}", groups = {UpDate.class, Select.class, Delete.class})
    private Long sceneId;

    @NotEmpty(message = "{\"code\": "+ ResultCode.PARAM_CONTENT_EMPTY +",\"msg\": \"必须传递场景名称\"}", groups = {Insert.class, UpDate.class})
    private String sceneName;

    private Long createBy;

    private Date createTime;

    private Short status;

    private static final long serialVersionUID = 1L;



    public Long getSceneId() {
        return sceneId;
    }

    public void setSceneId(Long sceneId) {
        this.sceneId = sceneId;
    }

    public String getSceneName() {
        return sceneName;
    }

    public void setSceneName(String sceneName) {
        this.sceneName = sceneName == null ? null : sceneName.trim();
    }

    public Long getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Long createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Short getStatus() {
        return status;
    }

    public void setStatus(Short status) {
        this.status = status;
    }
}
